<template>
	<view class="my_enter_detail_page">
		<view class="title">
			{{detail.mallInfo.activities_topic}}
		</view>
		<view class="info">
			<view class="item">
				活动类型：<text>{{detail.mallInfo.activities_type_name}}</text>
			</view>
			<view class="item">
				活动领域：<text>{{detail.mallInfo.activities_industry_name}}</text>
			</view>
			<view class="item">
				活动时间：<text>{{detail.mallInfo.start_time}} - {{detail.mallInfo.end_time}}</text>
			</view>
			<view class="item">
				活动地点：<text>{{detail.mallInfo.address}}</text>
			</view>
		</view>

		<view class="enter_info">
			<view class="enter_info_title">
				报名信息
			</view>
			<view class="enter_info_content" v-for="(item,index) in detail.detailList">
				<view class="l">
					{{index+1}}
				</view>
				<view class="r">
					<view class="row">
						<view class="r_title">
							<text class="red">*</text>姓名：
						</view>
						<view class="fx1">
							{{item.real_name}}
						</view>
					</view>
					<view class="row">
						<view class="r_title">
							<text class="red">*</text>电话：
						</view>
						<view class="fx1">
							{{item.phone_number}}
						</view>
					</view>
					<view class="row">
						<view class="r_title">
							单位：
						</view>
						<view class="fx1">
							{{item.work_unit}}
						</view>
					</view>
					<view class="row">
						<view class="r_title">
							职务：
						</view>
						<view class="fx1">
							{{item.job_duties}}
						</view>
					</view>

				</view>
			</view>
		</view>
		<view class="bottom-line" v-if="show_line">
			<span>我是有底线的</span>
		</view>
	</view>
</template>

<script>
	import {
		transfromtTime
	} from '@/utils/time.js';
	export default {
		data() {
			return {
				detail: {
					mallInfo: {}
				},
				show_line:false
			}
		},
		onLoad(o) {
			this.getDetail(o.id)
		},
		methods: {
			getDetail(v) {
				let that = this;
				this.$request.get({
					url: 'payOrder/selectDetail',
					data: {
						id: v
					}
				}).then(res => {
					that.detail = res
					that.detail.mallInfo.start_time = transfromtTime(that.detail.mallInfo.start_time)
					that.detail.mallInfo.end_time = transfromtTime(that.detail.mallInfo.end_time)
					that.show_line = true
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: #F4F5F8;
		height: 100%;
	}

	.my_enter_detail_page {
		.title {
			height: 110upx;
			line-height: 110upx;
			font-weight: bold;
			padding:0 30upx;
			color: #2A7DFA;
			font-size: 32upx;
			border-bottom: 1upx solid #E2E2E2;
			background: #fff;
			width: 750upx;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.info {
			display: flex;
			flex-direction: column;
			justify-content: space-around;
			padding: 30upx;
			height: 285upx;
			background: #fff;

			.item {
				color: #757575;
				font-size: 26upx;

				text {
					color: #333333;
				}
			}
		}

		.enter_info {

			margin-top: 15upx;
			background: #fff;

			.enter_info_title {
				padding: 35upx 0 35upx 30upx;
				color: #333;
				font-size: 32upx;
				font-weight: bold;
			}

			.enter_info_content {
				display: flex;
				margin: 0 30upx;
				border-bottom: 1upx solid #DDDDDD;

				.l {
					width: 30upx;
					height: 30upx;
					background: #6CA7FF;
					border-radius: 30upx;
					color: #fff;
					font-size: 22upx;
					display: flex;
					justify-content: center;
					align-items: center;
					margin-top: 8upx;
				}

				.r {
					flex: 1;
					font-size: 26upx;
					color: #333;
					line-height: normal;
					margin-left: 13upx;

					.row {
						display: flex;
						margin-bottom: 30upx;

						.r_title {

							width: 164upx;
							display: flex;
							justify-content: flex-end;
							color: #757575;

							.red {
								color: #FF4D4F;
							}
						}

						.fx1 {
							flex: 1
						}
					}

				}
			}

			.enter_info_content:nth-last-child(1) {
				border-bottom: none;
			}
		}

		.bottom-line {
			line-height: 87upx;
			text-align: center;

			span {
				font-size: 24upx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: rgba(182, 182, 182, 1);
				position: relative;

				&::before {
					content: '';
					display: block;
					position: absolute;
					width: 115upx;
					height: 1upx;
					background-color: #E0E0E0;
					top: 50%;
					transform: translateY(-50%);
					left: -153upx;
				}

				&::after {
					content: '';
					display: block;
					position: absolute;
					width: 115upx;
					height: 1upx;
					background-color: #E0E0E0;
					top: 50%;
					transform: translateY(-50%);
					right: -153upx;
				}
			}
		}
	}
</style>
